import request from '@/utils/request'

export const getList = params => {
    return request({
        url: '/SeriesRAPI/Declare/GetList',
        method: 'get',
        params: params
    })
}

export const view = (id, type) => {
    return request({
        url: `/SeriesRAPI/Declare/${id}/${type}`,
        method: 'get',
        'responseType': "arraybuffer"
    })
}

export const save = data => {
    return request({
        url: '/SeriesRAPI/Declare/Add',
        method: 'post',
        data
    })
}